package person.bangbang.im.Androidgin.UI;

import person.bangbang.im.Androidgin.Framework.ProtocolSpec;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
/** 
 * protocol spinner view.
 *
 */
public class ProtocolView extends LinearLayout {
		private EditText idV;
		private ImageView iconV;
		public ProtocolView(Context context, ProtocolSpec spec) {
			super(context);
			
			idV = new EditText(context);
			iconV = new ImageView(context);
			LayoutParams l = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
                    ViewGroup.LayoutParams.WRAP_CONTENT);

			addView(idV, l);
		}
		
		public void setId(String id) {
			idV.setText(id);
		}

}
